package com.huarui.companypackage.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.companypackage.dao.ICompanyServiceDao;
import com.huarui.companypackage.model.CompanyService;

public class CompanyServiceDaoImpl extends BaseDaoImpl implements
		ICompanyServiceDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<CompanyService> getCompanyServiceByCondition(
			Map<String, Object> map) {
		return getSqlMapClientTemplate().queryForList(
				namespace + ".getCompanyServiceByCondition", map);
	}

	@Override
	public Integer getCompanyServiceCountByCondition(Map<String, Object> map) {
		return (Integer) getSqlMapClientTemplate().queryForObject(
				namespace + ".getCompanyServiceCountByCondition", map);
	}

	@Override
	public Integer dletePresentCompanyService(Map<String, Object> map) {

		return getSqlMapClientTemplate().delete(namespace+".dletePresentService", map);
	}

}
